package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.BTxnLimitCfg;
import cc.rengu.redp.bizimpl.upmp.vo.MerchantLevelInfo;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

public interface MerchantGradeQuotaManagetService extends IService<BTxnLimitCfg> {


    IPage<BTxnLimitCfg> findByPage(QueryRequest request, BTxnLimitCfg entity);

    List<MerchantLevelInfo> getAddMerLevelInfos(String instId) throws RedpException;
    public List<BTxnLimitCfg> queryBankGradeQuota(String instId,String mchntLevelCode) throws RedpException;
    void saveMerGradeQuota(BTxnLimitCfg txnLimitCfg) throws RedpException;

    void editMerGradeQuota(BTxnLimitCfg txnLimitCfg) throws RedpException;

    void startMcGradeQuota(BTxnLimitCfg req) throws RedpException;

    void stopMcGradeQuota(BTxnLimitCfg req) throws RedpException;

    void deleteMcGradeQuota(BTxnLimitCfg req) throws RedpException;

    void batchUploadBankQuotal(ArrayList<BTxnLimitCfg> bankLevelQuotaList, String instId) throws RedpException;

    BTxnLimitCfg getMcGradeQutaDetail(String mchntLevelCode, String instId) throws RedpException;
}
